package com.mjh.zhujianju.service.agency;

import com.livew.framework.base.service.BaseService;
import com.livew.framework.exception.XTBusinessException;
import com.livew.framework.page.PagedResult;
import com.mjh.zhujianju.model.agency.PolicyEO;
import com.mjh.zhujianju.vo.agency.PolicyVO;

import java.util.List;

/**
 * @author liuyang
 * @Description: 政策
 * @date 2018/8/9 22:31
 */
public interface PolicyService extends BaseService<PolicyEO> {

    /**
     * 首页列表展示
     * @return
     */
    List<PolicyVO> queryPolicyIndexList();

    /**
     * 所有信息展示
     * @param type
     * @return
     */
    List<PolicyVO>  queryPolicyList(String type);

    /**
     * 根据政策id查询详细信息
     * @param id
     * @return
     */
    PolicyVO queryPolicyInfo(Long id);

    /**
     * 保存
     * @param vo
     * @throws XTBusinessException
     */
	void saveInfo(PolicyVO vo)throws XTBusinessException;

	/**
	 * 更新
	 * @param vo
	 * @throws XTBusinessException
	 */
	void updateInfo(PolicyVO vo)throws XTBusinessException;

	/**
	 * 分页查询
	 * @param eo
	 * @return
	 */
	PagedResult<PolicyVO> getVOPage(PolicyVO eo);

	PolicyVO getInfo(Long id)throws XTBusinessException;
}
